package com.ginage.gaugemanager.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.ginage.gaugemanager.mapper.entity.Department;
import com.ginage.gaugemanager.mapper.entity.Gauge;
import com.ginage.gaugemanager.mapper.entity.GaugeType;


public interface IGaugeDao {
	public List<Map<String, Object>> getName();
	public int addGauge(Gauge gauge);
	public int editGauge(Gauge gauge);
	public Gauge getGauge(int id);
	public int removeGauge(int[] ids);
	public int getGaugeMaxNum(Gauge gauge);
	public int isExist(Gauge guage);
	public List getAllGauges();
	public String getFactory(String departmentNum);
	public List searchGauge(@Param("gauge") Gauge gauge,@Param("startPos") int startPos,@Param("endPos") int endPos);
	public String [] getGaugeSpecification();
	public String [] getGaugeAccuracy();
	public String [] getGaugeModel();
	public String [] getGaugeManufacturer();
	public int [] getGaugeRemainingDays();
	public String [] getGaugeOwner();
	public String [] getGaugeCalibratePeriod();
	public String [] getGaugeFolder();
	public String getGaugeName(String gaugeNameAbbr);
	public String getDepartment(String departmentNum);
	public String[] getGaugeNames();
	public String[] getGaugeNameAbbrs();
	public List<GaugeType> getGaugeNamesByAbbrs(String[] gaugeNameAbbrs);
	public String[] getDepartmentNums();
	public List<Department>getDepartments(String[] departmentNum);
	public String[] getCalibrationResult();
	public String[] getGaugeStatus();
	public int getTotal(Gauge searchGauge);
	public int getBigGaugeOrderNum(String gaugeNameAbbr);
	public void addBigGauge(Gauge newGauge);
	public void updateOrderNum(String gaugeNameAbbr);
	public int getTotalOfNeedToCalibrateThisMonth();
	public int totalOfExpired();
	public int totalOfLost();
	public int totalOfScrapped();
	public int totalOfGauge();
	public int totalOfBigGauge();
	public int totalOfCommonGauge();
}
